<?php include(APPPATH . 'views/header.php'); ?>
<!--整体内容开始-->
<div class="home_box">
<!--排行内容开始-->
<div class="ph_nr">
<div class="ph_nrleft">
    <div class="home_title4"><h2>财富排行榜</h2></div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <th width="12%">名次</th>
            <th width="43%">昵称</th>
            <th width="14%">段位</th>
            <th width="31%">银两</th>
        </tr>
        <?php foreach ($money as $k=>$m) {?>
        <tr>
            <td><?=$k?></td>
            <td><?=$m['username']?><a href="#"></a></td>
            <td><?=$m['golevel']?>段</td>
            <td><?=$m['gomoney']?></td>
        </tr>
        <?php }?>
    </table>

</div>
<!--财富排行榜结束-->


<div class="ph_nrleft">
    <div class="home_title4">
        <h2>对弈排行榜</h2>
    </div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <th width="12%">名次</th>
            <th width="39%">昵称</th>
            <th width="13%">段位</th>
            <th width="13%">胜</th>
            <th width="12%">败</th>
            <th width="11%">和</th>
        </tr>
        <?php foreach ($duiyi as $dk=>$d) {?>
        <tr>
            <td><?=$dk;?></td>
            <td><?=$d['username'];?><a href="#"></a></td>
            <td><?=$d['golevel'];?>段</td>
            <td><?=$d['upwin'];?></td>
            <td><?=$d['uploss'];?></td>
            <td><?=$d['upjigo'];?></td>
        </tr>
        <?php }?>
    </table>


</div>

<!--对弈排行榜结束-->

<div class="ph_nrleft">
    <div class="home_title4">
        <h2>消费排行榜</h2>
    </div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <th width="12%">名次</th>
            <th width="43%">昵称</th>
            <th width="14%">段位</th>
            <th width="31%">消费元宝</th>
        </tr>
        <tr>
            <td>1</td>
            <td><a href="#">相逢何必曾相知</a></td>
            <td>24段</td>
            <td>67700323555</td>
        </tr>
        <tr>
            <td>2</td>
            <td><a href="#">风之子01</a></td>
            <td>19段</td>
            <td>60030012228</td>
        </tr>
        <tr>
            <td>3</td>
            <td><a href="#">军歌</a></td>
            <td>21段</td>
            <td>54610295056</td>
        </tr>
        <tr>
            <td>4</td>
            <td><a href="#">暗夜星罗</a></td>
            <td>14段</td>
            <td>50000025196</td>
        </tr>
        <tr>
            <td>5</td>
            <td><a href="#">燕二十八</a></td>
            <td>24段</td>
            <td>44067454400</td>
        </tr>
        <tr>
            <td>6</td>
            <td><a href="#">桃之夭妖</a></td>
            <td>14段</td>
            <td>43004909898</td>
        </tr>
        <tr>
            <td>7</td>
            <td>猪头大队长</td>
            <td>15段</td>
            <td>43004909898</td>
        </tr>
        <tr>
            <td>8</td>
            <td>天国的情人</td>
            <td>19段</td>
            <td>43004909898</td>
        </tr>
        <tr>
            <td>9</td>
            <td>天国的情人</td>
            <td>24段</td>
            <td>43004909898</td>
        </tr>
        <tr>
            <td>10</td>
            <td>天国的情人</td>
            <td>24段</td>
            <td>43004909898</td>
        </tr>
    </table>

</div>

<!--消费排行-->


<div class="ph_nrleft">
    <div class="home_title4">
        <h2>棋友会活跃度</h2>
    </div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <th width="12%">名次</th>
            <th width="55%">棋友会名称</th>
            <th width="33%">棋友会会员</th>
        </tr>
        <?php foreach ($club as $ck=>$c) {?>
        <tr>
            <td><?=$ck;?></td>
            <td><?=$c['name'];?><a href="#"></a></td>
            <td><?=$c['membernum'];?></td>
        </tr>
        <?php }?>
    </table>

</div>

<!--棋友会活跃度结束-->

</div>
<div class="clear"></div>
</div>
<!--排行内容结束-->
<?php include(APPPATH . 'views/link.php'); ?>

<div class="wbg"></div>

<?php include(APPPATH . 'views/footer.php'); ?>